﻿package birdry.utils
{
	
	import flash.display.BitmapData;
	import flash.utils.getDefinitionByName;
	
	/**
	* ...
	* @author 
	*/
	public class ClassUtil 	{
		
		public function ClassUtil(): void	{
		}
		
		public static function returnLibrary( name:String ): Object	{
			return new (getDefinitionByName(name) as Class);
		}
		
		public static function returnLibraryBD( name:String ): BitmapData	{
			return new (getDefinitionByName(name) as Class)(0,0);
		}
	}	// class
	
}	// package